<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .father{
            height: 60px;
            border: 1px solid black;
        }

        .float {
            /* height: 60px; */
            float: left;
        }

        img{
            height: 60px;
        }

    </style>
</head>

<body>
    <div class="father">
        <div class="float">
            <img src="../assets/css.webp" />
        </div>father 内文字
    </div>father外文字也发生了环绕效果!


</body>

</html>